<template>
  <div class="multiaxisLine_form">
    <l-checkbox :options="data" v-model="value"> </l-checkbox>
  </div>
</template>
<script>
export default {
  props: {
    valueArr: {
      type: Array,
      default: () => [],
    },
  },
  data() {
    return {
      data: [
        { label: "1秒钟风速(m/s)", value: "y1" },
        { label: "风机转速(r/m)", value: "y2" },
        { label: "输出功率(kW)", value: "y3" },
        { label: "直流电压(V)", value: "y4" },
        { label: "直流电流(A)", value: "y5" },
        { label: "10分钟风向(°)", value: "y6" },
      ],
    };
  },
  computed: {
    value: {
      get() {
        return this.valueArr;
      },
      set(val) {
        this.$emit("update:valueArr", val.split(","));
      },
    },
  },
  methods: {},
};
</script>
<style lang="scss">
.multiaxisLine_form {
  padding: 0 30px 30px 30px;
  .el-checkbox {
    margin: 16px;
    display: block;
  }
}
</style>
